<div class="focus" ui-view="container">
    <ol class="breadcrumb" style="font-size: 12px">
        <li>广告中心</li>
        <li> 作弊管理</li>
        <li>作弊过滤</li>
    </ol>
    <uib-tabset active="search.method" >
        <uib-tab index="'ip'" heading="过滤IP地址"   ng-click="filterClick('ip')"></uib-tab>
        <uib-tab index="'cuid'" heading="过滤设备ID"   ng-click="filterClick('cuid')"></uib-tab>
        <input ims-select-range-time="rangeDate" type="text" style="padding: 7px;">
        <div style="float: right" class="mt-2">
            <span>状态:</span>
            <select ng-model="search.status" style="margin-right: 20px"  class="select-style" ng-change="searchClick()" ng-init="search.status= search.status?search.status:'0'">
                <option value="0">全部</option>
                <option value="{{x}}" ng-repeat="x in status">{{table[x]}}</option>
            </select>

            <span class="mt-1">筛选类型:</span>
            <select ng-model="search.type"  class="select-style" ng-change="searchClick()" ng-init="search.type= search.type?search.type:'0'">
                <option value="0">全部</option>
                <option value="{{x}}" ng-repeat="x in types">{{table[x]}}</option>
            </select>
        </div>
        <div class="row panel-row bg-white">
            <div class="search-operation pull-left" style="margin-left: 20px;">
                <a ng-click="ForbideAll()" class="bg-style"  title="封禁">
                    封禁
                </a>
                <a ng-click="FocusAll()" class="bg-style" title="关注">
                    关注
                </a>
            </div>
        </div>
    </uib-tabset>
    <div class="panel">
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th><input type="checkbox" id="allCheck" class="magic-checkbox" ng-model="checkData.allChecked"
                               ng-change="selectAllChange(checkData.allChecked)" >
                        <label for="allCheck"></label>
                    </th>
                    <th>{{search.method=='cuid'?'设备ID':'IP'}}</th>
                    <th>过滤类型</th>
                    <th>过滤时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in lists">
                    <td><input type="checkbox" id="{{$index}}" class="magic-checkbox" ng-model="item.checked"
                               ng-change="selectOneChange(item.checked)">
                        <label for="{{$index}}"></label>
                    </td>
                    <td ng-if="search.method=='cuid'">{{item.cuid}}</td>
                    <td ng-if="search.method=='ip'">{{item.ip}}</td>
                    <td>{{table[item.type]}}</td>
                    <td>{{item.cTime}}</td>
                    <td>{{table[item.status]}}</span></td>
                    <td>
                        <div ng-if="item.status==501">
                            <span class="ml-10">关注</span>
                            <span class="ml-10">封禁</span>
                        </div>
                        <div ng-if="item.status==500">
                            <span class="ml-10">关注</span>
                            <a ng-click="addDisallow(item)" class="ml-10">封禁</a>
                        </div>
                        <div ng-if="item.status==502">
                            <a ng-click="addFocus(item)" class="ml-10">关注</a>
                            <a ng-click="addDisallow(item)" class="ml-10">封禁</a>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="panel-footer">
        <s-pagination conf="paginationConf"></s-pagination>
    </div>
</div>


